package com.xyl.springboot;

import org.springframework.boot.Banner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.kafka.annotation.EnableKafka;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * https://docs.spring.io/spring-kafka/reference/whats-new.html
 * https://docs.spring.io/spring-kafka/reference/kafka.html
 * docker run --name kafka -d -p 9092:9092 apache/kafka:3.7.1
 * cat /opt/kafka/config/server.properties
 * cd /tmp/kraft-combined-logs
 * spring-kafka:3.2.1需要3.7.0的kafka客户端
 */
@EnableKafka
@EnableScheduling
@SpringBootApplication
public class SpringBootMybatisFlexApplication {

    public static void main(String[] args) {
        SpringApplication application = new SpringApplication(SpringBootMybatisFlexApplication.class);
       // application.setWebApplicationType(WebApplicationType.NONE);
        application.setBannerMode(Banner.Mode.OFF);
        application.run(args);

    }

}